Procter & Gamble’s earnings beat as higher pricing offsets drop in volume