Modeling the interplay between human behavior and the spread of infectious diseases