US mortgage rates rise to 3-month high