As of early Wednesday morning, Ernesto weakened to a tropical storm as it doused Mexico’s Yucatan Peninsula with rain, according to the National Hurricane Center.…