Tussle over 500 euro notes ends with slow phasing out