PepsiCo has booked an 18% increase in first-half net income after a slight increase in sales and lower costs.