A theory of the non-neutrality of money with banking frictions and bank recapitalization