Electronic correlations and flattened band in magnetic Weyl semimetal Co3Sn2S2