Palestinians to draft ‘code of conduct’ for elections