The explosion in popularity of artificial intelligence tools is opening up companies and their legal departments to a range of new legal risks, experts say, some of which are not yet clearly understood.