Namibia will have its first female leader after Vice President Netumbo Nandi-Ndaitwah wins the presidential election.