Factors associated with diagnosis and treatment of osteoporosis in older adults