most common assumption is earthing must be faulty first call electrician or take a multimeter and check earthing at socket if it is fine then something is wrong with the appliance, even in my house we have weird problem when the heater is swithched off sometimes in bathroom i get shock, called electrician and he checked earthing , heater etc and all is fine, now the shock is coming only morning during -6.30 to 07.00 am for some 10-15 mins not at all times so electrician told that someone must be using some faulty appliance, then had to tell neighbours about ti and guess the stupid neighbour stopped using his faulty appliance, probably an IRON ,,, but still electricity is hard to understand inspite of fauly appliance earthing should go via earth to ground and not shock the person,, dont know im not engineer tap in bathroom gave strong shock, and i am even today afraid but since electrician checked n certified strong earthing i need to only worry about neighbours, if the shock that ur getting is only sometimes and repeats only at specific times then it might be due to some faulty appliance used by somenoe in ur home