Designing Scotland’s electricity system so that it can run purely on renewable energy would require tens of billions of pounds worth of investment in battery storage or continued reliance on carbon emitting gas plants, according to modelling carried out by EDF.