Association between chronic pain and attrition: a prospective analysis of a national sample of midlife adults in the USA, 2004–2014