Mathematical Analysis of Epidemic Models with Treatment in Heterogeneous Networks