Bitcoin climbed to its highest level in nearly two weeks after the US and Iran said they reached an agreement to end hostilities and reopen the Strait of Hormuz.