Moulding machines for making moulds or cores of particular shapes for pipes or elongated hollow articles