Cristiano Ronaldo became the first player to score in six different World Cups as Portugal ran out comfortable winners with Nuno Mendes and Rafael Leao also scoring.