This type of switch is renowned for leaking! your method statement looks fine but two points TURN OFF the cold water main, then open up a hot tap to discharge the trapped water under pressure before starting work, secondly make sure that the new switch is in exactly the same orientation (there...