PepsiCo has increased prices in a bid to tackle commodity costs but, reporting its second-quarter results, the company was upbeat about the performance of its snacks brands.