Mysterious fast radio bursts could reveal hidden matter around galaxies