Donald Trump has suggested Iran could face military action if it does not agree to a new nuclear deal.