Find the Fault
Firstly, the problem is almost certainly not your GFCI or Circuit breaker.
What has happened is that a fault has developed in your water heater or in your power outlets or someone has hammered a nail into a wall and punctured and shorted a wire. The circuit-breaker has then done the right thing and isolated the circuit to prevent your house burning down in the night whilst you are asleep.
You need to find that fault.
Lights
Your lights are on a separate circuit, that's why they are not affected.
![enter image description here](https://i.stack.imgur.com/MYIwS.png)
Fuses
Your main distribution board looks like it is fitted with fuse-carriers (not with more modern MCBs or RCBOs). You need to open up the relevant one and check the fuse inside for continuity.
It isn't clear to me how your subsidiary distribution board is connected to the main distribution board. In my part of the world, a subsidiary board is fed from one of the fuses (or MCBs or RCBOs) in the main board - which are labelled to make this clear.
In your case it isn't clear but I'd turn off power to the building and then check fuse 6 since the symbol on that looks a bit like a water heater.
![enter image description here](https://i.stack.imgur.com/2hzMh.png)
You should only replace this after you found and fixed the fault in your heater room.
It might be that the overload in the room with the heater blew the fuse in the main distribution board as well as tripping the MCB in the subsidiary board (the one with the 0/1 switch). That fuse probably supplies power to the subsidiary board which divides it between the heater and sockets and a couple of other circuits.
If so, the 20A fuse in the main board isn't rated for a full 64A load that your subsidiary board is fused for (20 + 32 + 16 + 16). That doesn't seem right to me.
Glossary
- MCB - Mini Circuit Breaker - has an on-off switch that detects overcurrent faults
- RCBO - Residual Current Breaker with Overload protection - has a reset pushbutton
- GFCI - What Americans call a RCBO (roughly equivalent anyway)
- Fuse - Contains a wire that sacrificially melts to protect you when a fault occurs.
The standard 240V water heater only has one speed (choice of amp draw): 23A. That is how all such hot water heaters are sized. The reason is they want it as fast as possible while falling within a statutory 24A limit.
Edit: ThreePhaseEel brings up an interesting point. A 30A hot water heater implies that it is 240V, because it's cheaper to bump volts to 240 before amps to 30. However, you didn't tell us the old service was 240V (meaning a 2-pole "double" breaker in the panel). If this is in fact a 120V heater, that changes things. I'll describe this difference inside this box.
First, make sure this is a "plain old resistive heater" and not a hybrid or heat-pump heater. The trick I'm about to describe won't work with a hybrid.
Now I said "resistive" - the heating element is a resistor, which is the simplest electronic device on earth, and it follows simple rules, starting with Ohm's Law: Voltage = Current x Resistance. Resistance is defined by how the heater is built. So what happens if we run it on 120V?
Well, since Resistance is fixed -- if Voltage drops by 50%, so must Current. That means on 120V, this same water heater will draw 11.5 amps, and will be within safety limits of a 15A/120V circuit, and will not trip breakers. However since useful power = voltage x current, and both those are halved, useful power is 1/4.
What does that mean for heater performance? Assuming it's Energy Star, the insulation is tip top. It will reach target temperature ........... eventually. And it will take 4 times longer to get there. You'll want to follow the conservation tips in my last paragraph.
This use on 120V is safe, and it's safe indefinitely.
Now back to the 240V scenario.
All of the advice to follow violates Code. The only Code-correct solution is correct cable and breaker, but you knew that.
So expect a lot of breaker trips.
Wait 1 hour before resetting it. That is because of this particular situation - we know exactly why it is tripping, so the consequences of resetting it too soon are also known.
If you upgrade the cable to #10 copper (10/2 will suffice), then you can reset it as often as you please. I am assuming perhaps it is hard to obtain the right breaker due to obsolescence (PushMatic) or complexity (quadplex).
If you have a Federal Pacific, Zinsco or Challenger panel, those panels are dangerous and you are already playing with fire, so don't push your luck with those panels.
You will have fewer trips if you take great pains to use hot water VERY sparingly - follow California drought or boondocking-in-RV rules. Get wet, shut the water off, lather up, then do a quick rinse... Select cold water in dishwasher and washing machine... Let the soap do the cleaning not the heat... Etc.
Best Answer
Code doesn't apply to the wiring within appliances
The NEC does not deal with wiring within appliances -- UL (or CSA, or Intertek, or MET, or TUV) is the one responsible for ensuring that's safe, and they work off a different set of wiring specs (Appliance Wiring Material or AWM for short) than the wiring used for building wire. This is codified in NEC 300.1(B):