Assessment of physical function from patterns in routine physical activity measured by wearable activity monitors