Hurricane heads for Florida after brushing Caribbean islands