Protostellar accretion traced with chemistry. High-resolution C18O and continuum observations towards deeply embedded protostars in Perseus