Mimicking dark matter and dark energy in a mimetic model compatible with GW170817