Trapping of continuous-time quantum walks on Erdös–Rényi graphs