A global likelihood for precision constraints and flavour anomalies