Donald Trump has said that the US military operation guiding ships through the Strait of Hormuz will be paused.