Lisa Cook gave one of the bluntest warnings an official at the central bank has ever delivered about the stock market.