Cohomology of local systems on the complement of hyperplanes