Infinitesimal bialgebras, pre-Lie and dendriform algebras