Weighted infinitesimal unitary bialgebras on rooted forests and weighted cocycles