Diffusion-based Time Series Imputation and Forecasting with Structured State Space Models