Self-similar spherical gravitational collapse and the cosmic censorship hypothesis