Characteristics of viral pneumonia in non-HIV immunocompromised and immunocompetent patients: a retrospective cohort study