Trump: Iran had agreed a day before the attack on ships in the Strait of Hormuz by reaching an agreement.