Oil prices rose yesterday for the first time in a week as the dollar fell and investors in global markets cautiously bought some riskier assets as anxiety eased about Britain’s possible exit from the European Union.