Singularities of secant varieties