The world’s largest retailer comfortably beat fourth-quarter sales forecasts last night, attracting robust growth in ­online spending by consumers during the holiday season