Draft sexuality and gender identity census questions 'weren't appropriate', prime minister says