Border agent searches of travellers’ devices have nearly quadrupled since 2015, rights groups say.