Kenyas President Uhuru Kenyatta secured a second term in office, the election commission announced on Friday, but the opposition rejected the result saying the process was undermined by fraud.