Swedish retailer Hennes & Mauritz (H&M) has signed a contract to open its first store in Japan.