High wind and rain has passed over the Mexican peninsula and Cuba as Hurricane Michael heads towards the US.