Characterization of liquid behaviour by means of local density fluctuations