Multi-Agent Reinforcement Learning For The Coordination Of Residential Energy Flexibility