A particle starts SHM at time $t=0 .$ Its amplitude is $A$ and angular frequency is $\omega .$ At time $t=0$, its kinetic energy is $\frac{E}{4}$, where $E$ is total energy. Assuming potential energy to be zero at mean position, the displacement-time equation of the particle can be written as
(A) $x=A \cos \left(\omega t+\frac{\pi}{6}\right)$
(B) $x=A \sin \left(\omega t+\frac{\pi}{3}\right)$
(C) $x=A \sin \left(\omega t-\frac{2 \pi}{3}\right)$
(D) $x=A \cos \left(\omega t-\frac{\pi}{6}\right)$