Shadow foreign secretary Emily Thornberry has accused Theresa May of "squatting" in Downing Street after the election.