Rapid and correlated variability of blazar S5 0716+71 from radio- to sub-mm bands