The EU has announced a plan to ban the purchase of Russian oil by the end of the year as part of a sixth package of sanctions in response to the war in Ukraine.