Real Madrid midfielder signs new four-year contract