Money Demand and the Stock Market in a General Equilibrium Model with Variable Velocity