US cereal maker General Mills has reported a 24% rise in quarterly net earnings despite challenging conditions.