Prison authorities have warned Scotland's jails are dangerously overcrowded despite repeated government pledges to lock-up fewer people.