Walmart beats estimates and raises forecast on back of online sales