Continual Learning with Foundation Models: An Empirical Study of Latent Replay