City replacing ageing water pipes