The British couple detained in Iran have been charged with espionage, according to the Iranian judiciary news agency.