Controlling degenerate Hopf bifurcations