Shares finish higher, foreign investors net buy at the beginning of new month