Dissipative torsional device for seismic protection of timber frames