The single biggest fix is choosing a server that is physically close to you. Distance is what drives up your ping, so a nearby host will almost always feel smoother than a popular one on another continent.
Always check a server's ping response before you commit to joining. Most browser lists and the in-game server browser show it, and anything in the low double digits or below is a good sign.
Beyond that, closing background downloads, lowering a few graphics settings and using a wired connection instead of Wi-Fi will all help keep your frame times and latency steady.