Federer had moments of magic, as he has throughout the tournament, but it proved not enough