Palestinian rivals 'agree new PM'