A Risk Analysis Model for the Maintenance and Rehabilitation of Pipes in a Water Distribution System: A Statistical Approach