Measurement of the W → ℓν and Z/γ * → ℓℓ production cross sections in proton-proton collisions at \sqrt {s} = 7 TeV with the ATLAS detector