Walmart beats profit estimates as online sales hit record on pandemic boost