The Associated PressU.S. home prices rose in June from the same month last year, according to the Standard & Poor's/Case-Shiller home price index released Tuesday. Steady increases have contributed to a housing recovery that began earlier this year. And most markets are being affected by foreclosures. Bank-owned homes typically sell at a sharp discount, weighing down the values of nearby homes. In markets where the supply of bank-owned homes for sale has declined, investors and other buyers will often drive up prices on the few properties that hit the market. Here are the top five cities that have recorded home price gains over the past year and the five that have posted the steepest declines in the same period: Five hottest markets: 1. Phoenix, up 13.9 percent. The combination of fewer foreclosures coming onto the market and investor demand for bank-owned homes has created bidding wars, driving prices higher. But sales of bank-owned homes sank to the lowest level in nearly 4Â½ years last month. 2. Minneapolis, up 5.7 percent. Sales of foreclosed homes have been rising, growing 33 percent in the first three months of the year. Even so, Minneapolis still has a nearly 20-month supply of foreclosures. 3. Miami, up 4.4 percent. Investors and overseas buyers have been scooping up homes. Sales in June hit the highest level for that month in five years. But the market still has a 20.3-month supply of foreclosures. 4. Denver, up 4 percent. Sales in Denver have posted monthly annual increases going back to February. Nearly 21 percent of sales in June were made by buyers that didn't list the home as their primary residence. That suggests they were investors or people buying second homes. 5. Washington, up 3.9 percent. The Washington metropolitan area, including suburbs in Maryland and Virginia, benefits from a healthy job market, much of it linked to the federal government. Demand for homes is consistently strong, and foreclosure activity in the area slowed in the first half of the year.