As the depth of the lake water fluctuated, Mexico City was subject to periodic flooding