The Aga Khan IV, a spiritual leader and philanthropist who was said to be one of the world's richest royals, has died aged 88.