Current carrying capacity of dendrites