The drop in the cosmic star formation rate below redshift 2 is caused by a change in the mode of gas accretion and by active galactic nucleus feedback: The drop in the cosmic SFR below z = 2