Information-theoretic Limits for Community Detection in Network Models