Griffiths-Harris rigidity of compact Hermitian symmetric spaces