Mystery £326,000 legacy pays for Scunthorpe hospital dementia upgrade