feat: add pre-commit version 4 and bump 3.3 version
Pre-commit 3.3.2 (which is what is currently installed) seems to try to install an unsupported node release (https://gitlab.developers.cam.ac.uk/uis/devops/infra/entra-app-factory/-/jobs/1785547).
Bump the version installed by the pre-commit-3.3 image and add a new ...-4 image for pre-commit version 4.
Test image build pipeline: https://gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/-/pipelines/624522
Edited by Dr Rich Wareham