An Ulster Unionist councillor who was at the centre of a selection row following this year’s General Election has announced his resignation from the party.