There's no law which says that you can't hire a car. However, almost all car hire companies will only have insurance cover for drivers who've held a licence for several years (typically, as Cockney_si suggests, 3 years). If they took on a policy which allowed them to hire cars to new drivers, it's likely that their hire rates would be more than doubled and they'd lose most of their trade.