Characteristics and mortality rates among patients requiring intermediate care: a national cohort study using linked databases