Government accused of ‘giving up on the North’ as major rail HQ goes to Derby