Japanese stocks see foreign outflows for a second successive week