The problem of pipes banging on a wall is often called "water hammer." Check out this HowStuffWorks podcast to learn more about this phenomenon.
See omnystudio.com/listener for privacy information.