On the size of graphs whose cycles have length divisible by a fixed integer