A particle of mass $m$ is attached to a light inextensible string of length $a$ fixed at $O$. It is held at $A$, where $OA$ makes an angle $\alpha$ with the downward vertical and $\cos\alpha=\tfrac45$. It is projected perpendicular to the string, upwards, with speed $\sqrt{3ga}$ and moves in a vertical circle. The string first goes slack when it makes an angle $\theta$ with the upward vertical. Find $\cos\theta$. [5]