The retailer posted strong sales during the holiday quarter as shoppers looked for discounts on groceries and other items.