Liquid-cooled energy storage system