Kraft Foods is to split into two companies, a move that will create a global snacks maker that would sell brands including Oreo biscuits and Cadbury chocolate.