Discrete Malliavin-Stein method: Berry-Esseen bounds for random graphs and percolation