A hysteresis model for timber joints with dowel-type fasteners