An obscure king who ruled West Africa in the 14th century has been named the richest person in history in a new list of the world's 25 wealthiest people.