State-based Episodic Memory for Multi-Agent Reinforcement Learning