Offer patients genetic tests to see if medicines are safe and effective, says Royal College of Physicians