Schools should draw up ‘homework contracts’ with parents