Name-brand products are losing shoppers as rising prices push more consumers toward store brands and lower-cost alternatives.