The UK will become one of the first countries in the world to ban new coal mines as the government announces restrictions to licences.