Text this: A mathematical model of corruption dynamics and optimal control