Walmart topped holiday-quarter estimates with strong e-commerce momentum but issued a softer full-year earnings outlook.