Oil hits three-month high on upbeat data, Middle East tension