Cones of lines having high contact with general hypersurfaces and applications