Walmart Inc. says it’s looking to sell its entire stake in Chinese e-commerce giant JD.com, as the American retailer adjusts its strategy in the world’s second-largest economy.