Namibia's President Hage Geingob has died while receiving medical treatment for cancer at a hospital in the country's capital, Windhoek.