Former NZ Prime Minister confirmed as head of UNDP