A neural network model of the cortico-hippocampal interplay and the representation of contexts