A bill that would make homeowners switch to greener heating soon after buying a new home has been scrapped by the Scottish Government.