Spanish minister resigns after alleged links to offshore deals