McDonald's said the Gaza-Israel war was weighing on its results with sales down in the fourth quarter of last year.