Design and performance of the GAMMA-400 gamma-ray telescope for dark matter searches