Hospices caring for people at the end of their lives are at risk because funding is "unsustainable".