Wal-Mart has swapped its Chinese online grocery business for a stake in the country's second largest e-commerce site, in a move that will likely see the US retail behemoth attempt to turn around its China business.