A continuum description for cholesteric and nematic twist-bend phases based on symmetry considerations