Key agencies are bracing for a wave of departures in the coming months, amid rising fears among civil servants that they and their work will be targets of the Trump White House.