Municipal corporations shall have power to cause any lot of land within their limits to be raised up or drained on which or on part of which water shall at any time become stagnant, and to cause all putrid substance, whether animal or vegetable, to be removed from any lot or lots.