Addressing Loss of Plasticity and Catastrophic Forgetting in Continual Learning