Self-similar stellar collapse