Submillimetre Observations of UC HII Regions and Hot Molecular Cores