A dense layer of fog has set in across most of metropolitan Sydney, creating difficult conditions for drivers.