Hurricane Matthew slams Bahamas as rescuers try to reach Haiti