A Game-Theoretic Analysis of Corruption in Bureaucracies