Arduino resets when on wall power supply

Connect a 100nf capacitor between the GND pin of the Arduino and earth ground and your mysterious reset will not happen.

Do you use this same touch test method on mains connected devices? Just curious...