Merkel says there is hope for Brexit deal 'right up to the last day'