Evidence for cold accretion onto a massive galaxy at high redshift