Scottish parliament member resigns over convictions