The 30-year fixed mortgage rate averaged 5.27% for the week ending May 5 — up from 5.10% last week.