Brexit signals growing pains for economy