German unemployment has risen by more than expected in a blow to hopes that it is recovering from a downturn.