'Mrs. Doubtfire' star stayed away from drugs following advice from Robin Williams