On oscillatory motion in the problem of three bodies