Kenya's new president, Uhuru Kenyatta, who faces international charges of crimes against humanity, has been sworn in to office at a ceremony in a stadium packed with supporters and foreign dignitaries.