French retail giant Carrefour has said it will shut its two stores in Singapore by the end of the year.