The two derelict asylums were built to take care of people and, despite being allowed to fall into a state of dereliction, still show signs of their former glory