Diagnosis and treatment of hiv