Plectic cohomology of Shimura varieties