Helical trajectories of swimming cells with a flexible flagellar hook