Self-closing flushing valves with diaphragm valve and pressure chamber for retarding the valve-closing movement