Hurricane Ophelia strengthens as it heads for UK