The relationship between allostatic load and pain and physical function in individuals with knee or hand pain: a cross-sectional study