Exact relations between particle fluctuations and entanglement in Fermi gases