Prices rose earlier on Wednesday but then uncertainty over the Middle East conflict prompted investors to lock in gains