A theory of the money supply with competitive banking