Procter & Gamble topped Wall Street's estimates for its quarterly earnings and revenue.