Energy networks and Ofgem earmark £300m for green grid projects