Foreign Secretary Dominic Raab has said the arrest of the British ambassador to Iran during protests in Tehran was a “flagrant violation of international law”.