A common occurrence is that you could be accumulating "static electricity" and discharging it by touching a switch or receptacle that is grounded properly. If you have metal cover plates, try changing to plastic & see if this helps. If the shock is not static, call to have this looked at ASAP. This could also be due to some portion of the device being energized that is not properly grounded or tripping the breaker/fuse.