Feedback from winds and supernovae in massive stellar clusters – I. Hydrodynamics