A particle $P$ of mass $m$ is attached to a light inextensible string of length $a$ fixed at $O$. Initially $OP$ is horizontal and taut. The particle is projected vertically downwards with speed $\sqrt{2ag}$. The string becomes slack when $OP$ makes an angle $\theta$ with the upward vertical.
(i) Show that $\cos\theta=\tfrac23$. [5]
(ii) Find the greatest height above the horizontal through $O$ reached by $P$ after the string becomes slack. [4]