Distributed energy storage system