The Scottish government is to scrap its flagship target of reducing greenhouse gas emissions by 75% by 2030.