Ronaldo hat-trick seals Madrid-Bayern clash