After a bumpy end to a banner year, McDonald's says sales growth will moderate in 2024