Generic vanishing and minimal cohomology classes on abelian varieties