The world's largest packaged food company reported better-than-expected annual sales growth but warned of lower profit margins in 2025.