Reducibility for a class of weakly dispersive linear operators arising from the Degasperis–Procesi equation