Analysis of Overparameterization in Continual Learning under a Linear Model