A key negotiator of the Good Friday Agreement has been appointed as the Prime Minister’s new national security adviser.