A study of the characteristics and needs of people transferred from acute hospitals to nursing homes