Sorry to be the bearer of bad news . . . hopefully you blew a head gasket, more likely you have a crack in the head and combustion gasses are leaking into the water jacket and causing the foaming. You might run a compression/leak down test with the radiator cap off and watch for bubbles.