Text this: How individuals' opinions influence society's resistance to epidemics: an agent-based model approach