Moulding corrugated pipe