Terror groups using porn sites, encrypted apps to dodge surveillance: Officials