Lewis Hamilton overtook Carlos Sainz to go second, with reports suggesting rain could cause chaos in the latter stages of the Spanish GP.