Relaxation dynamics near the sol–gel transition: From cluster approach to mode-coupling theory