Procter & Gamble Co. pulled back substantially on ad spending as a share of sales last quarter amid rising commodity inflation and supply-chain constraints, but the company said its spending remains well ahead of pre-pandemic levels and in line with historical norms.