Ex-FIA DG Bashir Memon resigns ahead of retirement