Russian President Vladimir Putin has signed into law a bill that obliges foreign IT companies to set up local units or face penalties including a possible ban as Moscow continues to try and tighten its control over the flow of information on the Internet.