Molecular clouds and dense cores within the large HII region around the open cluster IC 1396 in Cepheus