PepsiCo revenue rose in the final quarter as it raised prices to offset weakness in demand for drinks and snacks