The United Kingdom now devotes more resources than it did during the Cold War to countering foreign threats, according to the head of its domestic intelligence.