A ceasefire between the United States and Iran remains in place, US defence chief Pete Hegseth says amid rising tensions in the Strait of Hormuz.