UK department store chain Debenhams has recorded a "resilient" finish to the first-half thanks to improving sales.