Abelian Gauge Symmetries in F-Theory and Dual Theories