The Cauchy problem and continuation of periodic solutions for a generalized Camassa–Holm equation