A British couple detained in Iran have been "suddenly whisked" to a courtroom in the country's capital, Tehran, their family have said.