Continual Learning with Strategic Selection and Forgetting for Network Intrusion Detection