Fractional De Giorgi classes and applications to nonlocal regularity theory