Top general says Hamdok to lead an independent technocratic cabinet until elections held; other government officials and politicians arrested in October takeover to be released