Some people say they are "stranded" in hospital, but the NHS denies decisions around their care are driven by costs.