Legendary jazz trumpeter Hugh Masekela, a leading figure in the struggle to end apartheid and "the father of South African jazz", has died aged 78.