The first major project for publicly owned Great British Energy will fund solar panels on the roofs of hundreds of schools and hospitals, the Government said.