You have a Water Hammer Issue
Water hammering is a fairly hard thing to diagnose. Theres many variables that can cause hammering, that are completely unrelated to each other.
I recommend to get a pro out to investigate the issues.
I just delt with a water hammering issue for a client. Read what I
posted on another forum , just to give you an idea of how hard dealing with water hammering can be sometimes.