Fractal lattice as an efficient thermoelectric device