The US is considering a sweeping new rule that would require tourists to hand over five years of social media history.