Authorities have also previously been criticised for using the The Regulation of Investigatory Powers Act ( Ripa ) , which was created to help the authorities to fight the threat of terrorism , to spy on people littering and dog fouling .