Latent position and cluster models for statistical networks