Machines in which the moulds are moved during a cycle of successive operations