UK chocolate retailer and manufacturer Thorntons has reported an annual loss due to costs linked to the company's restructuring.