Detecting leaks in pressurised pipes by means of transients