Oil prices rallied Thursday by nearly 5%, with the global benchmark touching its highest level since July as tensions between the U.S. and Iran worsened, raising concerns over disruptions to the global flow of crude.