Chest computed tomography and chest X-ray in the diagnosis of community-acquired pneumonia: a retrospective observational study