There are almost 28,000 homes deemed vacant by councils across Scotland, according to data obtained by the Scottish Liberal Democrats.