Age and sex related changes in episodic memory function in middle aged and older adults