Readmissions to medical wards: analysis of demographic and socio-medical factors.