Kellogg, the world's largest cereal maker, has agreed to improve the nutritional content of products it sells to children.