A general model for the helical structure of geophysical flows in channel bends