New allocation system for foundation training leaves doctors demoralised before they’ve even started work