Kellogg has cut its forecast for annual earnings after it reported lower sales and profits for the second quarter of the year.