Two British citizens have been detained in Iran, the government has said.