Mental health conditions such as obsessive compulsive disorder could be treated in a new way using drugs that target the immune system, research suggests.