A new president of the International Olympic Committee (IOC) has been elected.