Optimal design of macroscopic water networks under parametric uncertainty