Walmart said Thursday that holiday-quarter sales rose nearly 6% and its quarterly earnings and revenue surpassed Wall Street’s expectations as gains in e-commerce, advertising and its…