Separation of electrons and protons in the GAMMA-400 gamma-ray telescope