Horizontal variation of Tate--Shafarevich groups