Sensitivity of the Cherenkov Telescope Array to a dark matter signal from the Galactic centre