Critical Role of the Exchange Interaction for the Electronic Structure and Charge-Density-Wave Formation in TiSe2