Text this: Probabilistic modeling and optimization of leakages in water distribution networks