Flagging retailer Matalan has posted mixed interim trading with profits and sales down but better margins.