Sex Differences in Associations of Cognitive Function with Perceptions of Pain in Older Adults