You should take Lactobacilli for this. Commercially it is available as Vizylac capsules (1 capsule twice a day). In addition, you may take a lot of yoghurt (Dahi). Do not take milk till you have loose motions.