The sub-prime lender Amigo sets aside £345m for compensation for mis-selling and warns it may not survive.