SNP ministers have been urged to launch a "housing revolution" to end the rise in homelessness in recent years.