The European Commission has launched legal proceedings against the UK for its "failure to cut excessive levels of nitrogen dioxide", primarily from diesel engines.