France's Socialist PM Valls will resign to seek presidency vacated by Hollande