Members of the European Parliament (MEPs) have voted to ban throwaway plastic by 2021.