Mean values for a class of arithmetic functions in short intervals