FedEx will soon start testing robots that could make same-day deliveries of medicine, pizzas and other items to consumers’ homes, pushing the parcel-delivery giant into a new market competing against startups like Postmates that use humans for rapid deliveries.