Three people in Taiwan have been arrested on suspicion of spying for China, including a man from Hong Kong and two retired military officers.