Cornwall trust is told to improve staffing and care on medical wards