Growth of spike in relativistic Gaussian laser beam in a plasma and its effect on third-harmonic generation