Hurricane Joaquin affects the Bahamas