Tom Daley and Grace Reid won a silver medal for Britain in the mixed 3m springboard final at the World Diving Championships in Budapest.