Cristiano Ronaldo scored the 53rd hat-trick of his career as Portugal beat Switzerland 3-1 in the UEFA Nations League.