Pakistan spinner Abdur Rehman tested positive for recreational drugs whilst playing for Somerset this summer.