Kenya's Supreme Court has blamed the electoral commission for its decision to annul last month's presidential election.