Ian strengthens into a Category 4 storm as it heads towards the US state of Florida after plunging Cuba into darkness.