UK retailer Wilko has secured £40m funding and replaced the company’s founder as it moves to make ‘necessary changes’ after facing a turbulent period