Nearly 300 new genetic risk factors for depression have been identified in an analysis of more than five million people from 29 countries.