Spanish prime minister Pedro Sánchez has said he may well step down after his wife was accused of corruption.