Theresa May has criticised former police officers who spoke out about pornography being found on Damian Green's PC.