The Cauchy problem for a generalized Camassa-Holm equation