Machines for the production of pipes and rings