Protostellar formation in rotating interstellar clouds. VII. Opacity and fragmentation