Cristiano Ronaldo scored four times as Real Madrid demolished Malmo to equal the biggest victory in the history of the Champions League group stage.