Russian President Vladimir Putin has signed a new law which put anyone who has contact with foreigners at risk.