Dark matter and fundamental physics with the Cherenkov Telescope Array