A toddler was kicked out of nursery after being accused of transphobia or homophobia, Department for Education data reveals.