The latest outbreak of violence in the Strait of Hormuz came as President Donald Trump repeated that a deal with Iran could be reached within days.