The Prime Minister of Bangladesh Sheikh Hasina has resigned and fled the country amid growing anti-government protests.