A cross-sectional survey of depression, anxiety and cognitive function in outpatients with type 2 diabetes