Dove, Sunsilk shampoo, Knorr and many others are vulnerable to competition from grocers’ cheaper products, making it tough to generate the kind of improvements that investors are seeking.