Point spread function modelling for astronomical telescopes: a review focused on weak gravitational lensing studies