Procter & Gamble reported better-than-expected earnings, but its quarterly revenue fell short of Wall Street’s estimates.