Phase slips in superconducting weak links