Helical jets in blazars: Interpretation of the multifrequency variability of AO 0235+16