Clear cache (got to the options menu, scroll to the bottom and hit the network button) and it should improve your online somewhat but it's better to race either people you know or people largely from the same country as it seems distance can cause latency.
1. If you are using a wireless internet connection , try using a wired ethernet connection instead.
2. If you are using an ethernet wired connection then try the wireless connection instead.