U.S. President Donald Trump warned Iran to agree to a nuclear deal or face a far more severe military attack, as Tehran threatened retaliation.