US retailer says more shoppers have been attracted by cheaper prices as quarterly sales beat forecasts