Vietnam's National Assembly has passed a cybersecurity law requiring companies like Google and Facebook to store data of users in the country.