The median annual cost of all types of long-term care has risen faster than inflation over the past two decades.