A 12-year-old girl with known asthma and recent hospitalisation for pneumonia presents with persistent productive cough and large volumes of sputum. Examination reveals coarse crackles bilaterally. A sweat chloride test is elevated. What is the most likely diagnosis?