The foreign secretary issued the stark warning as the US and Iran remain at odds over the closure of the Strait of Hormuz.