A dynamic portfolio approach to asset markets and monetary policy