Shares end week on negative note, foreign investors return to net buy