Tokyo stocks end higher as weaker yen prompts buying of exporters