Nestle reported its weakest annual organic sales growth in more than two decades, hit by a pullback in consumer spending after years of high inflation.