Detainees at immigration centre subjected to inhumane treatment, says inquiry