Morocco are pushed out of contention for the World Cup in Russia after Portugal beat the north African side 1-0 with a fourth-minute goal by Cristiano Ronaldo.