Obama: 'We all have a part to play' in stopping gun violence