Methods for the diagnosis and treatment of cystic fibrosis