For a spherically symmetric distribution of mass, the acceleration felt by a test particle at radius $r$ is $-G M /r^2$ (negative because pointing in toward the center), regardless of the radial distribution of mass. This is a key part of the question, make sure you are comfortable with it. It is a concept that is related to Gauss' law of electromagnetism, if you've encountered that.
The total mass of the collapsing cloud is given by the initial uniform density times the volume, or $M = (4 \pi /3) r_0^3 \rho_0$
From Newton's second law, the equation of motion for a test particle at the edge of the cloud is then
$$ \frac{d^2r}{dt^2} = - \frac{4 \pi G r_0^3 \rho_0}{3r^2}$$
Now for some chain rule trickery (this is a nice trick, so it's good to remember it for similar differential equations):
$$ \frac{d}{dt} = \frac{dr}{dt} \frac{d}{dr}$$
Keeping in mind that $v \equiv \frac{dr}{dt}$, and using the chain rule subustitution just mentioned, the equation of motion is now
$$ v \frac{dv}{dr} = - \frac{4 \pi G r_0^3 \rho_0}{3r^2}$$
The point of doing all this is that the differential equaiton is now more clearly separable. You can solve it by integrating as follows
$$ \int v \, dv = - \frac{4 \pi G r_0^3 \rho_0}{3}\int\frac{dr}{r^2}$$
$$\frac{1}{2} v^2 = \frac{4 \pi G r_0^3 \rho_0}{3r} + C$$
(You also could have gotten to this point by relating gravitational potential energy to kinetic energy, and being careful about where you set the zero of the gravitational potential).
When $r = r_0$, $v = 0$, so $C = - \frac{4 \pi G r_0^2 \rho_0}{3}$ and
$$\frac{1}{2} v^2 = \frac{4 \pi G r_0^2 \rho_0}{3}\left(\frac{r_0}{r} - 1 \right)$$
$$ |v| = \sqrt{\frac{8 \pi G r_0^2 \rho_0}{3}\left(\frac{r_0}{r} - 1 \right)}$$
The total time can be found by integrating
$$t_{\rm collapse} = \int dt = \int \frac{dr}{|v|} = \sqrt{\frac{3}{8 \pi G r_0^2 \rho_0}}\int_0^{r_0}{\frac{dr}{\sqrt{\left(\frac{r_0}{r} - 1 \right)}}}$$
This is going to be a tricky integral, so let's non-dimensionalize it. Make a change of variable $u \equiv r/r_0$. Then we have
$$ t_{\rm collapse} = \sqrt{\frac{3}{8 \pi G \rho_0}}\int_0^{1}{\frac{du}{\sqrt{\frac{1}{u} - 1}}}$$
If you are really adept at trigonometric substitutions in integrals, here's your chance to shine. Otherwise, just use Wolfram Alpha or something similar to tell you that the integral evaulates to $\pi/2$. That gives, finally,
$$ t_{\rm collapse} = \sqrt{\frac{3 \pi}{32 G \rho_0}}$$