Device for measuring properties of a medium by scattered radiation and relative method