Ransomware is a growing threat in the public sector, but there are tools and grants available to help police and other agencies avoid costly incidents