The classical double copy for Taub–NUT spacetime