Two goals from Cristiano Ronaldo helped Real Madrid to a 3-1 victory over Chelsea in the final of the International Champions Cup.