Metro AG, Germany’s largest retailer, is forming an alliance with Alibaba Group Holding Ltd. to develop e-commerce on the Chinese online retailer’s website.