Mrs May accused First Minister Nicola Sturgeon and her party of being in a "muddle" about their plans to leave the UK.