Kenyan President Uhuru Kenyatta pledged to work with the opposition, but his rivals are disputing the election result.