The Pentagon’s former defense secretaries and top generals warned Tuesday that political polarization and other societal strains are creating an “exceptionally challenging” environment for maintaining the traditional relationship between the military and civilian worlds.