Planning repair and replacement program for water mains : a Bayesian framework