Decreased motor function is associated with poorer cognitive function in elderly with type 2 diabetes