US regional retailer Tops Markets has reported a half-year profit despite a fall in sales.