Quasi-invariants of hyperplane arrangements