Oil prices edged higher for the first time in three sessions on Wednesday, although concerns over the outlook for the global economy capped gains.