The Mayor of London has called for first-time offenders to be held separately from hardened criminals.