An explanation for dark matter and dark energy consistent with the standard model of particle physics and General Relativity