This has happened in all workforces that were traditionally all-male. Men create their own culture just as women do when they're divided into groups. Men talk about women in explicit ways when they're together. Introducing women into these predominantly male-oriented spaces was bound to create conflict. When the forces were all-male, some members experienced hazing and intimidation. The politics of power with the added ingredient of sexual attraction is ripe for abuse.
There are ways to tackle this and many companies have done so successfully. Hopefully police services will make the necessary changes.