Factors associated with tuberculosis and rifampicin-resistant tuberculosis amongst symptomatic patients in India: a retrospective analysis