Factors associated with prenatal care and HIV and syphilis testing during pregnancy in primary health care