The Scottish Greens have pledged to build thousands of new social homes and tackle long-term empty properties.