Turbulence and secondary motions in square duct flow