On degenerate secant and tangential varieties and local differential geometry