Theories of synaptic memory consolidation and intelligent plasticity for continual learning