Microcavity-enhanced light-matter interaction in van der Waals heterostructures