Academic who has faced online abuse says prejudice against women is hardwired over two millennia, from Homer to Twitter