SNP minister admits Ukrainian refugees sheltered in hotels for ‘too long’