The effect of anxiety on cognition in older adult inpatients with depression: results from a multicenter observational study