federer beats berrettini for first win of atp finals