Government plans to curtail onshore wind subsidy scheme will see millions of pounds of investments written off and "massively damage" investor confidence, ScottishPower claims