Former Dunfermline and Aberdeen manager Jimmy Calderwood has died at the age of 69 after a lengthy battle with dementia.