Weights in cohomology groups arising from hyperplane arrangements