Weight-decay induced phase transitions in multilayer neural networks