Interactions between nascent proteins and the ribosome surface inhibit co-translational folding