The nonlinear capillary instability of a liquid jet. Part 1. Theory