A Lagrangian approach to the weakly nonlinear interaction of Kelvin waves and a symmetry-breaking bifurcation of a rotating flow