Iran's president said Tehran would return to the June ceasefire if the US does too, hours after new US-Iran clashes near the Strait of Hormuz.