Soaring numbers of dementia patients admitted to hospital as emergencies, then stuck there for months