A neural network account of memory replay and knowledge consolidation | Synapse