Australia's women's 4x100m freestyle relay team set a new world record on their way to winning Australia's second gold medal of the Games.