The number of people prosecuted for cruelty to badgers has almost doubled in five years, new figures obtained by Labour suggest.