The government has launched a voluntary pledge to tackle the treatment of leaseholders in the property industry, including those trapped in "unfair and costly" deals.