Former Treasury minister Tulip Siddiq resigned after being named in an anti-corruption investigation in Bangladesh.