Hi. The type of foam you described equals soap suds! This is from organic material in your pond. Try scooping out with a net anything on the bottom and do some water changes. If your pond is near big trees you might want to cover it with a net in the fall. I get a different type of foam in my pond this time of the year when my goldfish start to get sexually active!