German factory activity contracts more than expected in October