Essays on fiscal and macroprudential policy