People in Singapore will soon be able to buy chewing gum again, but only over the counter at pharmacies, the government has said.