Spacetime foam in twistor string theory