Modelling Pipe Failures in Water Distribution Systems: Accounting for Harmful Repairs and a Time-dependent Covariate.