Polls have closed in Kenya and vote counting has begun in a tight election to pick a president and a new parliament.