New research has estimated that the cost of dealing with the legacy of the Troubles could be as much as £2.7bn.