Global weak solutions to the weakly dissipative Degasperis–Procesi equation