Semantic and episodic memories in a predictive coding model of the neocortex