Cell adhesion molecules and the transition from short- to long-term memory