PepsiCo has posted a rise in Q3 revenue and operating profit.