Joint candidate of Iraq's Kurdish parties has been elected the country's new president with 211 votes at parliament.