Photometry and astrometry with JWST -- I. NIRCam Point Spread Functions and the first JWST colour-magnitude diagrams of a globular cluster