A particle $P$ of mass $m$ is attached to a light inextensible string of length $a$ fixed at $O$. Initially $OP$ makes an angle $\alpha$ with the downward vertical, where $\cos\alpha=\tfrac23$. The particle is projected perpendicular to $OP$, upwards, with speed $\sqrt{3ag}$ and moves in a vertical circle. Find the cosine of the angle between the string and the upward vertical when the string first becomes slack. [4]