The Swedish retailer H&M said it was exploring the use of artificial intelligence in producing “digital twins” of models.