Hundreds of immigration detainees held in jails ‘blocked from accessing legal advice’ during pandemic