A study of runaway electron confinement in the ASDEX tokamak