Factors influencing severity of community-acquired pneumonia