Hurricane Melissa has devastated parts of Jamaica and brought heavy rains and flooding to other countries in the Caribbean.