Kenya's long-standing political challenger Raila Odinga has sworn himself in as the country's president.