Foreign companies selling electronics to British shoppers via online platforms like Amazon and eBay will have to start contributing to e-waste costs.