A particle $P$ is attached to one end of a light inextensible string of length $a$. The other end is attached to a fixed point $O$. The particle moves in complete vertical circles with centre $O$. The tension when $P$ is at its lowest point is twice the tension when $P$ is at its highest point. Find, in terms of $a$ and $g$, the greatest speed of $P$ during the motion. [6]