Modelling the damage induced by pressure transients in elasto-plastic pipes