Incidence and risk factors associated with ectopic pregnancy: a prospective study