The UK government is seeking views on proposals that will require energy developers to provide benefits to communities hosting offshore wind, onshore wind and solar farms.