THG is in talks to demerge its tech business as part of wider efforts to revive shareholder value after a bruising four years as a listed business.