Home Office put refugees in barracks after fears better housing would ‘undermine confidence’ in system