US President Donald Trump says the ceasefire with Iran is still in effect, despite clashes in the Strait of Hormuz.