PepsiCo posts Q2 earnings beat even as U.S. business slows