Bahrain’s government has resigned after announcing the results of the runoff parliamentary elections in the country.