Sales soft, but Walmart beats profit forecast