Thousands of mourners have turned out for the funerals of three men killed during riots in Birmingham.