Scotland fly-half Dan Parks has announced his retirement from international rugby after just one match in this year's Six Nations.