On the cosmic censorship conjecture for spherically symmetric, shear-free perfect fluid spacetimes