The world’s largest consumer goods maker said it will have to raise prices on a quarter of its products starting August.