Risk factors for community-acquired pneumonia diagnosed by general practitioners in the community