Rising tariffs and the weakening dollar are casting a shadow on companies’ profit guidance this earnings season, with more damage seen unfolding over the coming quarters.