Two former South Yorkshire Police officers have been arrested as part of an investigation into historical sex offences, the force has said.