On a long-standing conjecture of E. De Giorgi: symmetry in 3D for general nonlinearities and a local minimality property