The European parliament has adopted a new law making EU-issued driving licences valid for just 15 years, requiring drivers undergo a medical test before renewing.