Catastrophes in statistical biophysics