Trading Strategies and Portfolio Optimization in the Presence of Asset Price Bubbles