Walmart bests forecasts amid soft sales