McDonald's sales have fallen worldwide for the first time in nearly four years amid rising prices and ongoing boycotts over the war in Gaza.