Immigration policies ‘virtually guarantee’ destitution and homelessness for thousands in Scotland, study finds