Flavor anomalies from asymptotically safe gravity