The US and Iran have traded fire in the Strait of Hormuz, as Donald Trump seeks to reopen the vital waterway.