Migrating birds are responding to the effects of climate change by arriving at their breeding grounds earlier as global temperatures rise, research has found.