Walmart beats on earnings and revenues as US e-commerce push pays off