A parametric algorithm is optimal for non-parametric regression of smooth functions