As per the link Gosling has put up here, nursing care in a nursing home not just a care home can help or even cover all the costs, however, dementia of itself isn't always classed as a medical need.
Other co-conditions may be needed to make it funded as nursing/medical care as opposed to social care. K