Reduced models for optimal control, shape optimization and inverse problems in haemodynamics