Measurements of electroweak $Wjj$ production and constraints on anomalous gauge couplings with the ATLAS detector