The force confirmed that 316 officers and staff had declared membership of the Freemasons or another hierarchical association.