Roger Federer's last match will be alongside longtime rival Rafael Nadal for Team Europe against the Team World doubles