Magpies AFL veteran Wells retires