Over 700,000 Scottish homes are classed as not fit for habitation - with 600,000 more properties registered as below a legal tolerable standard since the pandemic, the Herald can reveal.