Iran reopened the Strait of Hormuz after a ceasefire between Israel and Lebanon but warned it could close again if the US blockade continues.