Serena Williams has admitted it was her male tennis coach who encouraged her to stop breastfeeding because he thought it was impacting her game.