Switzerland celebrated their first ever Davis Cup triumph, with Roger Federer finally claiming victory in the one competition missing from his long list of tennis triumphs.