Coca-Cola reported better-than-expected earnings in the second quarter as higher prices overcame weaker sales volumes