France's public prosecutor has opened a judicial inquiry into luxury firm LVMH's acquisition of shares in rival Hermès more than two years ago.