Retrospective analysis of risk factors and prognosis in non-ventilated patients with nosocomial pneumonia