Tropical depression dissipates, impacts Mexico