Jonny Bairstow says England and Australia's cricketers need to focus on the game instead of off-the-field incidents.