Kylian Mbappe scored a seven-minute hat-trick to put Real Madrid in command in their Champions League tie with Olympiacos.