Oil futures rose close to 2% as worries mount that the conflict in Israel and Gaza could spill over into the wider region.