Plans to turn an ex-care home into flats have been rejected after the proposed accommodation was deemed to offer “unsatisfactory living conditions”.