In your foot IK Handle attributes, make sure the Sticky option is turned on, this will keep your feet planted on the ground and also stop them from going through the ground.