Hurricane Willa weakens to storm in Mexico