Topological charge-density and spin-density waves in InAs/GaSb quantum wells under an in-plane magnetic field