Leicestershire took the chance to shine against Glamorgan as rain curtailed much of the opening day action in Division Two of the County Championship.