Roger Federer out for month after knee surgery