Local distribution of values of arithmetical functions