Bistable hysteresis and resistance switching in hydrogen-gold junctions