Thyroid function tests before prescribing anti-dementia drugs: a retrospective observational study