Average rate on a 30-year mortgage in the US rises to highest level since July