A category 5 hurricane continued its approach to the Bahamas as the country bracing itself for a direct hit.