Z(2) gauge model on fractal lattices