Jeremy Harris's photographs of desolate, shadowy asylums are a reminder of the treatment once meted out to people with psychological disorders