PepsiCo's Americas beverages unit has posted an increase in first-half sales and profits despite an overall slump for the snacks and drinks maker.