Collective field description of matrix cosmologies