Counterterrorism officials will keep certain information about American citizens and legal residents for up to five years, rather than the previous six months, in a bid to do a better job tracking down terrorism suspects, according to new guidelines made public on Thursday.