Generative replay with feedback connections as a general strategy for continual learning