Pembroke rest home to be turned into transitional living space for families