On the Hardy-Littlewood problem in short intervals