The risk of a wider Middle East conflict has put investors on edge and boosted oil prices due to fears of a disruption in global oil supplies.