Research England put politicians’ interests ahead of free speech, says EDI lead in resignation letter