£40m investment partnership launched to help communities take over local solar farms