The UK premium chocolate producer and retailer Thorntons has said its sales improved in the second quarter after the negative impact of hot summer weather.