How do brokerage accounts work — and how are they taxed? | MarketWatch