Communication breakdowns and complacency hampered the US Secret Service ahead of a July assassination attempt on Donald Trump, a probe has found.