High-dimensional analysis of ridge regression for non-identically distributed data with a variance profile