Weighted infinitesimal bialgebras, weighted cocycles, and Pre-Lie algebras