Scientists have created a new water-based battery that can store wind and solar energy which can be plugged back into the national grid.