The Trump transition team announced Tuesday that Thomas P. Bossert will serve as an adviser to Mr. Trump on national security, terrorism and cyber issues, putting him on the same level as the powerful incoming national security adviser, Michael Flynn.