Combinatorial Hopf algebras and hyperplane arrangements