Generation of singularities from the initial datum for Hamilton-Jacobi equations