Epidemic Modeling for Correlated Node Behavior in Ad Hoc Networks