UK scientists have developed a blood test to help doctors pick the best drug for patients with depression.