US President Donald Trump has repeatedly threatened to use force to compel Iran to agree to constrain its nuclear programme.