Phase transition between the cholesteric and twist grain boundary C phases