Visitors from ‘visa waiver’ countries will have to provide a five-year social media history to enter the US.