High-energy cosmic rays from supernovae in young clusters of massive stars