Diagnostic accuracy and treatment approach to depression in primary care: predictive factors