High-dimensional Asymptotics of Generalization Performance in Continual Ridge Regression