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