MI5: Terror threat to liberties